
#ifndef TREE_H_
#define TREE_H_

typedef struct treenode{

    struct treenode * left;
    struct treenode * right;
    int value;

}TreeNode;

// -插入节点
TreeNode * Tree_insert(TreeNode * root,int value);
// -根据值搜索节点
TreeNode * Tree_search(TreeNode * root,int value);
// -删除对应值节点
TreeNode * Tree_delete(TreeNode * root,int value);
// -输出树
void Tree_print(TreeNode * root);
// -释放内存
void Tree_destroy(TreeNode * root);


#endif //!TREE_H_